﻿namespace SocketCore.Common.Heartbeat;

/// <summary>
/// 客户端心跳状态管理
/// </summary>
public class ClientHeartbeatState
{
    /// <summary>
    /// 最后更新时间
    /// </summary>
    public DateTime LastHeartbeatTime { get; set; } = DateTime.UtcNow;

    /// <summary>
    /// 取消令牌
    /// </summary>
    public CancellationTokenSource ReceiveCts { get; set; }

    /// <summary>
    /// 响应消息确认收到
    /// </summary>
    public int NextMessageId { get; set; } = 1;
}